home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / master / Examples / DMakefile
Makefile  |  1994-02-01  |  628b  |  39 lines

  1.  
  2. #   DMakefile - generic
  3. #
  4.  
  5. FILES = cat hello led simplewin
  6. DIRS  = doshan exec_dev printer_driver shared_lib
  7. ED= t:
  8.  
  9. FIEXES= $(FILES:*:"t:*")
  10. FISRCS= $(FILES:*:"*.c")
  11. FIOBJS= $(FILES:*:"t:*.o")
  12.  
  13. default:
  14.     @echo "DMake $(FILES) $(DIRS)"
  15.     @echo "DMake all"
  16.  
  17. all: $(FILES) $(DIRS)
  18.  
  19. $(FILES) : $(FIEXES)
  20.  
  21. $(FIEXES) : $(FISRCS)
  22.     dcc -mRR -proto -r %(right) -o %(left) -Ot:
  23.  
  24. $(DIRS) : $(DIRS:*:*.dummy)
  25.  
  26. $(DIRS:*:*.dummy) : $(DIRS:*:*.dummy)
  27.     cd %(left:*.dummy:*)
  28.     dmake all
  29.     cd
  30.  
  31. clean: $(DIRS:*:*.clean)
  32.     -delete $(FIOBJS)
  33.  
  34. $(DIRS:*:*.clean) : $(DIRS:*:*.clean)
  35.     cd %(left:*.clean:*)
  36.     dmake clean
  37.     cd
  38.  
  39.